package com.msmall.community.klg.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.msmall.base.model.BaseObject;

/**
 * 文章回复
 * @author Administrator
 *
 */
@Entity
@Table(name="klg_article_reply")
public class ArticleReply extends BaseObject{

	private static final long serialVersionUID = 6659888023076317706L;

	@Id
	@Column(name="reply_id")
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private Long replyid;
	
	/**
	 * 所属文章ID
	 */
	@Column(name="article_id")
	private Long articleid;
	
	/**
	 * 回复发表人ID
	 */
	@Column(name="user_id")
	private Long userId;
	
	/**
	 * 作者发表时用的昵称
	 */
	@Column(name="nickname")
	private String nickname;
	
	@Column(name="enabled")
	private Short enabled;
	
	/**
	 * 回复内容. 设置里应该有长度限制
	 */
	@Column(name="content")
	private String content;
	
	@Column(name="create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public Long getArticleId() {
		return articleid;
	}

	public void setArticleId(Long articleid) {
		this.articleid = articleid;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public String getNickname() {
		return nickname;
	}

	public void setNickname(String nickname) {
		this.nickname = nickname;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Short getEnabled() {
		return enabled;
	}

	public void setEnabled(Short enabled) {
		this.enabled = enabled;
	}

	public Long getArticleid() {
		return articleid;
	}

	public void setArticleid(Long articleid) {
		this.articleid = articleid;
	}

	public Long getReplyid() {
		return replyid;
	}

	public void setReplyid(Long replyid) {
		this.replyid = replyid;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return null;
	}

}
